package com.asset.mapper;

import com.asset.entity.Asset;
import com.asset.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

@Mapper
public interface AssetMapper  {
	ArrayList<Asset> getAssetList( @Param("ids") ArrayList<Integer>ids);
	ArrayList<Asset>getAssetByType ( @Param("ids") ArrayList<Integer>ids);
	ArrayList<Asset> getAssetByUser ( @Param("ids") ArrayList<Integer>ids);
	Integer  getSumAsset ( @Param("ids") ArrayList<Integer>ids);
	Integer  getSumAssetByStatus ( @Param("ids") ArrayList<Integer>ids,@Param("status") Integer status);
	Integer  getSumAssetByType ( @Param("ids") ArrayList<Integer>ids,@Param("type") Integer type);
	Integer  getSumAssetByOne ( @Param("ids") ArrayList<Integer>ids);
	Integer  getSumAssetBy0 ( @Param("ids") ArrayList<Integer>ids);
	Integer  getSumAssetByYearAndNew ( @Param("ids") ArrayList<Integer>ids,@Param("year") String year);
	Integer  getSumAssetByYearAndDeath ( @Param("ids") ArrayList<Integer>ids,@Param("year") String year);
	Integer  getSumAssetByYearAndWaitDeath ( @Param("ids") ArrayList<Integer>ids,@Param("year") String year);
	Double getManyAssetByYearAndNew ( @Param("ids") ArrayList<Integer>ids,@Param("year") String year);
	Double getManyAssetByYearAndDeath ( @Param("ids") ArrayList<Integer>ids,@Param("year") String year);
	Double getManyAssetByYearAndWaitDeath ( @Param("ids") ArrayList<Integer>ids,@Param("year") String year);

}
